FragmentTabHost

Deprecated

Use TabLayout and ViewPager instead.

Special TabHost that allows the use of Fragment objects for its tab content. When placing this in a view hierarchy, after inflating the hierarchy you must call setup to complete the initialization of the tab host.

Constructors

Link copied to clipboard
constructor(@NonNull context: Context)
constructor(@NonNull context: Context, @Nullable attrs: AttributeSet)

Functions

Link copied to clipboard
open fun addTab(@NonNull tabSpec: TabHost.TabSpec, @NonNull clss: Class<out Any>, @Nullable args: Bundle)
Link copied to clipboard
open fun onTabChanged(@Nullable tabId: String)
Link copied to clipboard
open fun setup()

open fun setup(@NonNull context: Context, @NonNull manager: FragmentManager)
open fun setup(@NonNull context: Context, @NonNull manager: FragmentManager, containerId: Int)
Set up the FragmentTabHost to use the given FragmentManager